<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="com.bjpowernode.javaweb.jsp.bean.User" %>
<%@page contentType="text/html;charset=utf-8" %>

<%
    Map<String,String> map=new HashMap<>();
    map.put("username","zhansgan");
    map.put("password","123");

    Map<String, User> userMap2=new HashMap<>();
    User user=new User();
    user.setUsername("lisi");
    userMap2.put("user",user);

    request.setAttribute("userMap",map);
    request.setAttribute("userMap2",userMap2);
%>

${userMap.username}<br/>
${userMap["username"]}<br/>
${userMap.password}<br/>
${userMap["password"]}<br/>

${userMap2.user.username}<br/>
